<div id="print-table-div">
<form  name="tableEntryOuterForm" novalidate>

  <div class="not-for-screen">

    <div class="col-sm-12">
      <h3>{{'profile'| translate}}</h3>
    </div>
    <table class="dhis2-list-table-striped dhis2-table-hover">
      <tbody>
      <tr ng-repeat="attribute in selectedTei.attributes" ng-show="attribute.show">
        <td class="col-sm-6">
          {{attribute.displayName}}
        </td>
        <td class="col-sm-6">
          <input type="text" ng-attr-value={{attribute.value}} class="form-control">
        </td>
      </tr>
      </tbody>
    </table>

    <div class="col-sm-12">
      <h3>{{'enrollment'| translate}}</h3>
    </div>
    <table class="dhis2-list-table-striped dhis2-table-hover">
      <tbody>
      <tr>
        <td class="col-sm-6">
          {{'enrolling_orgunit'| translate}}
        </td>
        <td class="col-sm-6">
          <input type="text" ng-attr-value={{selectedEnrollment.orgUnitName}} class="form-control">
        </td>
      </tr>
      <tr>
        <td class="col-sm-6">
          {{selectedProgram.enrollmentDateLabel}}
        </td>
        <td class="col-sm-6">
          <input type="text" ng-attr-value= {{selectedEnrollment.enrollmentDate}} class="form-control">
        </td>
      </tr>
      <tr>
        <td class="col-sm-6">
          {{selectedProgram.incidentDateLabel}}
        </td>
        <td class="col-sm-6">
          <input type="text" ng-attr-value={{selectedEnrollment.incidentDate}} class="form-control">
        </td>
      </tr>
      </tbody>
    </table>

    <br>
    <br>

  </div>

    <div ng-show="currentStageEvents && currentStageEvents.length > 0">
        <table class="table-borderless table-striped event-table-custom">
            <thead>
                <tr class="">                
                    <th class="">                        
                        {{currentStage.executionDateLabel}}
                    </th>
                    <th class="" ng-repeat="prStDe in currentStage.programStageDataElements">
                        <span d2-pop-over
                              class="popover-label small-horizontal-spacing"
                              details="{{'details'| translate}}"
                              content="prStDe.dataElement"
                              template="dataelement-details.html"
                              trigger="click"
                              placement="right">
                            <a href ng-attr-title="{{'details'| translate}}" class="wrap-text" tabindex="-1">{{prStDe.dataElement.displayFormName}} <img class="icon-program" ng-style="{'background-color': (prStDe.dataElement.style.color ? prStDe.dataElement.style.color : 'none')}" ng-if="prStDe.dataElement.style.icon" ng-src="{{APIURL}}/icons/{{prStDe.dataElement.style.icon}}/icon.svg"></a>
                        </span>
                        <span ng-if="prStDe.compulsory" class="required">*</span>
                    </th>
                    <th class="" style="text-align: right">Status</th>
                </tr>
            </thead>
            <tbody>
            <tr ng-class="currentEvent === eventRow ? getEventStyle(eventRow) : ''"
                ng-repeat="eventRow in currentStageEvents"
                ng-if="currentStageEvents"
                ng-click="eventRowClicked(eventRow)"
                ng-dblclick="eventRowDblClicked(eventRow);"
                ng-form="eventRowForm{{eventRow.event}}"
                dhis2-deselect dh-on-deselected="deselectCurrent(id)" dh-id="{{eventRow.event}}" dh-pre-selected="currentEvent === eventRow" dh-abort-deselect="abortDeselect()">
                <td class="" ng-class="{'current-event-td': currentEvent === eventRow}">
                    <div ng-if="tableRowIsEditable(eventRow)">
                        <input type="text"
                               ng-attr-placeholder="{{dhis2CalendarFormat.keyDateFormat}}"
                               class="form-control"
                               ng-class="getInputNotifcationClass('eventDate',false)"
                               d2-date
                               ng-model="eventRow.eventDate"
                               ng-disabled="!eventEditable()"
                               ng-required="true"
                               ng-dblclick="$event.stopPropagation();"
                               ng-attr-title="{{currentStage.executionDateLabel}}"
                               blur-or-change="saveEventDateForEvent(eventRow)"/>
                    </div>
                    <div class="event-table-inactive" ng-if="!tableRowIsEditable(eventRow)">
                        <span ng-attr-title="DOB/Ab">
                            {{eventRow.eventDate}}
                        </span>
                    </div>
                    <span ng-if="invalidDate === eventRow.event" class="error">{{'date_required'| translate}}</span>

                </td>
                <td ng-class="{'current-event-td': currentEvent === eventRow, 'optionset': prStDe.dataElement.optionSetValue, '': !(prStDe.dataElement.optionSetValue)}"
                    ng-repeat="prStDe in currentStage.programStageDataElements">
                    <div ng-if="!isHidden(prStDe.dataElement.id, eventRow)">
                        <div ng-if="tableRowIsEditable(eventRow) && eventRow.validatedEventDate">
                            <div ng-if="prStDe.dataElement.optionSetValue">
                                <div ng-if="!selectedProgram.dataEntryMethod || optionSets[prStDe.dataElement.optionSet.id].options.length >= 7">
                                    <div>
                                        <ui-select  ng-model="eventRow[prStDe.dataElement.id]"
                                                    theme="select2"
                                                    ng-dblclick="$event.stopPropagation();"
                                                    ng-attr-title="{{prStDe.dataElement.formName ? prStDe.dataElement.formName : prStDe.dataElement.displayName}}"
                                                    ng-required={{prStDe.compulsory}}
                                                    ng-disabled="!dataElementEditable(prStDe)"
                                                    name="{{eventRow.event}}{{prStDe.dataElement.id}}"
                                                    on-select="saveDatavalue(prStDe, $eval('eventRowForm' + eventRow.event + '.' + eventRow.event + prStDe.dataElement.id))"
                                                    style="width:100%;">
                                            <ui-select-match allow-clear="true" ng-class='getInputNotifcationClass(prStDe.dataElement.id,false)' class="form-control-ui-select"  ng-attr-placeholder="{{'select_or_search' | translate}}">{{$select.selected.displayName  || $select.selected}}</ui-select-match>
                                            <ui-select-choices  repeat="option.displayName as option in optionSets[prStDe.dataElement.optionSet.id].options | filter:{displayName:$select.search} | limitTo:maxOptionSize">
                                              <span ng-bind-html="option.displayName | highlight: $select.search"></span>
                                            </ui-select-choices>
                                        </ui-select>
                                    </div>
                                </div>
                                <div ng-if="selectedProgram.dataEntryMethod && optionSets[prStDe.dataElement.optionSet.id].options.length < 7">
                                    <label>
                                        <input type="radio"
                                            ng-class='getInputNotifcationClass(prStDe.dataElement.id,true)'
                                            class="form-control"
                                            name="{{eventRow.event}}{{prStDe.dataElement.id}}"
                                            ng-required={{prStDe.compulsory}}
                                            ng-attr-title="{{prStDe.dataElement.formName ? prStDe.dataElement.formName : prStDe.dataElement.displayName}}"
                                            ng-dblclick="$event.stopPropagation();"
                                            ng-disabled="!dataElementEditable(prStDe)"
                                            ng-model="eventRow[prStDe.dataElement.id]"
                                            ng-change="saveDatavalue(prStDe, $eval('eventRowForm' + eventRow.event + '.' + eventRow.event + prStDe.dataElement.id))"
                                            ng-attr-value=""> {{'no_value' | translate}}<br>
                                    </label><br>
                                    <span ng-repeat="option in optionSets[prStDe.dataElement.optionSet.id].options">
                                        <label>
                                            <input type="radio"
                                                class="form-control"
                                                ng-class='getInputNotifcationClass(prStDe.dataElement.id,true)'
                                                name="{{eventRow.event}}{{prStDe.dataElement.id}}"
                                                ng-required={{prStDe.compulsory}}
                                                ng-attr-title="{{prStDe.dataElement.formName ? prStDe.dataElement.formName : prStDe.dataElement.displayName}}"
                                                ng-dblclick="$event.stopPropagation();"
                                                ng-disabled="!dataElementEditable(prStDe)"
                                                ng-model="eventRow[prStDe.dataElement.id]"
                                                ng-change="saveDatavalue(prStDe, $eval('eventRowForm' + eventRow.event + '.' + eventRow.event + prStDe.dataElement.id))"
                                                ng-attr-value={{option.displayName}}> {{option.displayName}}
                                        </label><br>
                                    </span>
                                </div>
                            </div>
                            <div ng-if="!prStDe.dataElement.optionSetValue" ng-switch="prStDe.dataElement.valueType">
                                <div ng-switch-when="NUMBER">
                                    <input type="number"
                                           number-type={{prStDe.dataElement.numberType}}
                                           class="form-control"
                                           ng-class='getInputNotifcationClass(prStDe.dataElement.id,false)'
                                           ng-model="eventRow[prStDe.dataElement.id]"
                                           d2-number-validator
                                           ng-required={{prStDe.compulsory}}
                                           ng-dblclick="$event.stopPropagation();"
                                           ng-attr-title="{{prStDe.dataElement.formName ? prStDe.dataElement.formName : prStDe.dataElement.displayName}}"
                                           ng-disabled="!dataElementEditable(prStDe)"
                                           ng-blur="saveDatavalue(prStDe, $eval('eventRowForm' + eventRow.event + '.' + eventRow.event + prStDe.dataElement.id))"
                                           name="{{eventRow.event}}{{prStDe.dataElement.id}}"/>
                                </div>
                                <div ng-switch-when="PERCENTAGE">
                                    <input type="number"
                                           number-type={{prStDe.dataElement.numberType}}
                                           class="form-control"
                                           ng-class='getInputNotifcationClass(prStDe.dataElement.id,false)'
                                           ng-model="eventRow[prStDe.dataElement.id]"
                                           d2-number-validator
                                           ng-required={{prStDe.compulsory}}
                                           ng-dblclick="$event.stopPropagation();"
                                           ng-attr-title="{{prStDe.dataElement.formName ? prStDe.dataElement.formName : prStDe.dataElement.displayName}}"
                                           ng-disabled="!dataElementEditable(prStDe)"
                                           ng-blur="saveDatavalue(prStDe, $eval('eventRowForm' + eventRow.event + '.' + eventRow.event + prStDe.dataElement.id))"
                                           name="{{eventRow.event}}{{prStDe.dataElement.id}}"/>
                                </div>
                                <div ng-switch-when="INTEGER">
                                    <input type="number"
                                           number-type={{prStDe.dataElement.valueType}}
                                           class="form-control"
                                           ng-class='getInputNotifcationClass(prStDe.dataElement.id,false)'
                                           ng-model="eventRow[prStDe.dataElement.id]"
                                           d2-number-validator
                                           ng-required={{prStDe.compulsory}}
                                           ng-attr-title="{{prStDe.dataElement.formName ? prStDe.dataElement.formName : prStDe.dataElement.displayName}}"
                                           ng-dblclick="$event.stopPropagation();"
                                           ng-disabled="!dataElementEditable(prStDe)"
                                           ng-blur="saveDatavalue(prStDe, $eval('eventRowForm' + eventRow.event + '.' + eventRow.event + prStDe.dataElement.id))"
                                           name="{{eventRow.event}}{{prStDe.dataElement.id}}"/>
                                </div>
                                <div ng-switch-when="INTEGER_POSITIVE">
                                    <input type="number"
                                           number-type={{prStDe.dataElement.valueType}}
                                           class="form-control"
                                           ng-class='getInputNotifcationClass(prStDe.dataElement.id,false)'
                                           ng-model="eventRow[prStDe.dataElement.id]"
                                           d2-number-validator
                                           ng-required={{prStDe.compulsory}}
                                           ng-attr-title="{{prStDe.dataElement.formName ? prStDe.dataElement.formName : prStDe.dataElement.displayName}}"
                                           ng-dblclick="$event.stopPropagation();"
                                           ng-disabled="!dataElementEditable(prStDe)"
                                           ng-blur="saveDatavalue(prStDe, $eval('eventRowForm' + eventRow.event + '.' + eventRow.event + prStDe.dataElement.id))"
                                           name="{{eventRow.event}}{{prStDe.dataElement.id}}"/>
                                </div>
                                <div ng-switch-when="INTEGER_NEGATIVE">
                                    <input type="number"
                                           number-type={{prStDe.dataElement.valueType}}
                                           class="form-control"
                                           ng-class='getInputNotifcationClass(prStDe.dataElement.id,false)'
                                           ng-model="eventRow[prStDe.dataElement.id]"
                                           d2-number-validator
                                           ng-required={{prStDe.compulsory}}
                                           ng-attr-title="{{prStDe.dataElement.formName ? prStDe.dataElement.formName : prStDe.dataElement.displayName}}"
                                           ng-dblclick="$event.stopPropagation();"
                                           ng-disabled="!dataElementEditable(prStDe)"
                                           ng-blur="saveDatavalue(prStDe, $eval('eventRowForm' + eventRow.event + '.' + eventRow.event + prStDe.dataElement.id))"
                                           name="{{eventRow.event}}{{prStDe.dataElement.id}}"/>
                                </div>
                                <div ng-switch-when="INTEGER_ZERO_OR_POSITIVE">
                                    <input type="number"
                                           number-type={{prStDe.dataElement.valueType}}
                                           class="form-control"
                                           ng-class='getInputNotifcationClass(prStDe.dataElement.id,false)'
                                           ng-model="eventRow[prStDe.dataElement.id]"
                                           d2-number-validator
                                           ng-required={{prStDe.compulsory}}
                                           ng-attr-title="{{prStDe.dataElement.formName ? prStDe.dataElement.formName : prStDe.dataElement.displayName}}"
                                           ng-dblclick="$event.stopPropagation();"
                                           ng-disabled="!dataElementEditable(prStDe)"
                                           ng-blur="saveDatavalue(prStDe, $eval('eventRowForm' + eventRow.event + '.' + eventRow.event + prStDe.dataElement.id))"
                                           name="{{eventRow.event}}{{prStDe.dataElement.id}}"/>
                                </div>
                                <div ng-switch-when="LONG_TEXT">
                                        <textarea rows="3"
                                            ng-class='getInputNotifcationClass(prStDe.dataElement.id,false)'
                                            class="form-control"
                                            ng-model="eventRow[prStDe.dataElement.id]"
                                            ng-required={{prStDe.compulsory}}
                                            ng-attr-title="{{prStDe.dataElement.formName ? prStDe.dataElement.formName : prStDe.dataElement.displayName}}"
                                            ng-dblclick="$event.stopPropagation();"
                                            ng-disabled="!dataElementEditable(prStDe)"
                                            ng-blur="saveDatavalue(prStDe, $eval('eventRowForm' + eventRow.event + '.' + eventRow.event + prStDe.dataElement.id))"
                                            name="{{eventRow.event}}{{prStDe.dataElement.id}}"/>
                                        </textarea>
                                </div>
                                <div ng-switch-when="TEXT">
                                        <input type="text"
                                            ng-class='getInputNotifcationClass(prStDe.dataElement.id,false)'
                                            class="form-control"
                                            ng-model="eventRow[prStDe.dataElement.id]"
                                            ng-required={{prStDe.compulsory}}
                                            ng-attr-title="{{prStDe.dataElement.formName ? prStDe.dataElement.formName : prStDe.dataElement.displayName}}"
                                            ng-dblclick="$event.stopPropagation();"
                                            ng-disabled="!dataElementEditable(prStDe) "
                                            ng-blur="saveDatavalue(prStDe, $eval('eventRowForm' + eventRow.event + '.' + eventRow.event + prStDe.dataElement.id))"
                                            name="{{eventRow.event}}{{prStDe.dataElement.id}}"/>
                                </div>
                                <div ng-switch-when="BOOLEAN">
                                    <d2-radio-button
                                        ng-dblclick="$event.stopPropagation();"
                                        ng-attr-title="{{prStDe.dataElement.formName ? prStDe.dataElement.formName : prStDe.dataElement.displayName}}"
                                        dh-required="prStDe.compulsory"
                                        dh-disabled="!dataElementEditable(prStDe)"
                                        dh-value="eventRow[prStDe.dataElement.id]"
                                        dh-name="{{eventRow.event}}{{prStDe.dataElement.id}}"
                                        dh-click="saveDataValueForRadio(prStDe, eventRow, value)">
                                    </d2-radio-button>
                                </div>
                                <div ng-switch-when="DATE">
                                    <input type="text"
                                           ng-attr-placeholder="{{dhis2CalendarFormat.keyDateFormat}}"
                                           d2-date
                                           d2-date-validator
                                           max-date="prStDe.allowFutureDate ? '' : 0"
                                           class="form-control"
                                           ng-class='getInputNotifcationClass(prStDe.dataElement.id,false)'
                                           ng-model="selectedOrgUnit.closedStatus || eventRow[prStDe.dataElement.id]"
                                           ng-required={{prStDe.compulsory}}
                                           ng-attr-title="{{prStDe.dataElement.formName ? prStDe.dataElement.formName : prStDe.dataElement.displayName}}"
                                           ng-dblclick="$event.stopPropagation();"
                                           ng-disabled="!dataElementEditable(prStDe)"
                                           blur-or-change="saveDatavalue(prStDe, $eval('eventRowForm' + eventRow.event + '.' + eventRow.event + prStDe.dataElement.id))"
                                           name="{{eventRow.event}}{{prStDe.dataElement.id}}"/>
                                </div>
                                <div ng-switch-when="TRUE_ONLY">
                                    <input type="checkbox"
                                           class="form-control"
                                           ng-class='getInputNotifcationClass(prStDe.dataElement.id,false)'
                                           ng-model="selectedOrgUnit.closedStatus || eventRow[prStDe.dataElement.id]"
                                           ng-required={{prStDe.compulsory}}
                                           ng-attr-title="{{prStDe.dataElement.formName ? prStDe.dataElement.formName : prStDe.dataElement.displayName}}"
                                           ng-dblclick="$event.stopPropagation();"
                                           ng-disabled="!dataElementEditable(prStDe)"
                                           ng-change="saveDatavalue(prStDe, $eval('eventRowForm' + eventRow.event + '.' + eventRow.event + prStDe.dataElement.id))"
                                           name="{{eventRow.event}}{{prStDe.dataElement.id}}"/>
                                </div>
                                <div ng-switch-when="EMAIL">
                                    <input type="email"
                                           name="foo"
                                           class="form-control"
                                           ng-model="eventRow[prStDe.dataElement.id]"
                                           ng-model-options="{ updateOn: 'default blur', allowInvalid: true }"
                                           selected-program-id={{selectedProgram.id}}
                                           selected-tei-id={{selectedTei.trackedEntityInstance}}
                                           ng-disabled="!dataElementEditable(prStDe)"
                                           ng-blur="saveDatavalue(prStDe, $eval('eventRowForm' + eventRow.event + '.' + eventRow.event + prStDe.dataElement.id))"
                                           ng-required="{{prStDe.compulsory}}"/>
                                </div>
                                <div ng-switch-when="URL">
                                    <div class="hideInPrint">
                                        <input type="url"
                                               ng-attr-placeholder="{{'url_format' | translate}}"
                                               ng-pattern="/^(http|https):\/\/[a-z0-9]+([\-\.]{1}[a-z0-9]+)*\.[a-z]{2,6}(:[0-9]{1,5})?(\/.*)?$/"
                                               class="form-control"
                                               ng-class="getInputNotifcationClass(de.id,false, currentEvent)"
                                               ng-model="currentEvent[de.id]"
                                               ng-required={{isCompulsory(de)}}
                                               ng-disabled="!dataElementEditable(prStDe)"
                                               ng-blur="saveDatavalue(prStDes[de.id], innerForm.foo)"
                                               name="foo"/>
                                    </div>
                                </div>
                                <div ng-switch-default>
                                    <div class="alert alert-danger form-control">
                                        {{'unsupported_value_type' | translate}}:  {{prStDe.dataElement.valueType}}
                                    </div>
                                </div>
                            </div>

                            <div ng-messages="$eval('eventRowForm' + eventRow.event + '.' + eventRow.event + prStDe.dataElement.id + '.$error')"
                                 ng-show="eventRow.submitted || $eval('eventRowForm' + eventRow.event + '.' + eventRow.event + prStDe.dataElement.id + '.$dirty')"
                                 class="error-text"
                                 ng-dblclick="$event.stopPropagation();"
                                ng-messages-include="../dhis-web-commons/angular-forms/error-messages.html">
                            </div>

                        </div>
                        <div class="event-table-inactive" ng-if="!tableRowIsEditable(eventRow) || !eventRow.validatedEventDate">
                            <div ng-switch="prStDe.dataElement.valueType">
                                <div ng-switch-when="BOOLEAN">
                                    <d2-radio-button
                                        dh-required="prStDe.compulsory"
                                        ng-attr-title="{{prStDe.dataElement.formName ? prStDe.dataElement.formName : prStDe.dataElement.displayName}}"
                                        dh-disabled="!dataElementEditable(prStDe)"
                                        dh-value="eventRow[prStDe.dataElement.id]"
                                        dh-name="{{eventRow.event}}{{prStDe.dataElement.id}}"
                                        dh-click="saveDataValueForRadio(prStDe, eventRow, value)">
                                    </d2-radio-button>
                                </div>
                                <div ng-switch-when="TRUE_ONLY">
                                    <input type="checkbox"
                                           class="form-control"
                                           ng-model="eventRow[prStDe.dataElement.id]"
                                           ng-required={{prStDe.compulsory}}
                                           ng-attr-title="{{prStDe.dataElement.formName ? prStDe.dataElement.formName : prStDe.dataElement.displayName}}"
                                           ng-disabled="true"
                                           name="foo"/>
                                </div>
                                <div ng-switch-when="MULTI_SELECT_GROUP">
                                    <ul>
                                        <li ng-repeat='event in eventRow[prStDe.dataElement.id].selections' ng-attr-title="{{prStDe.dataElement.formName ? prStDe.dataElement.formName : prStDe.dataElement.displayName}}">
                                            {{event.formName ? event.formName : event.name}}
                                        </li>
                                    </ul>
                                </div>
                                <div class="wrap-name" ng-switch-default>
                                    <span ng-attr-title="{{prStDe.dataElement.formName ? prStDe.dataElement.formName : prStDe.dataElement.displayName}}">
                                        {{eventRow[prStDe.dataElement.id]}}
                                    </span>
                                </div>
                            </div>
                        </div>

                        <div if="errorMessages[eventRow.event][prStDe.dataElement.id] || warningMessages[eventRow.event][prStDe.dataElement.id]"
                             class="icon-padding"
                             ng-click="$event.stopPropagation();"
                             ng-dblclick="$event.stopPropagation();">
                                <span ng-click="showCompleteErrorMessageInModal(errorMessages[eventRow.event][prStDe.dataElement.id], prStDe.dataElement.formName ? prStDe.dataElement.formName : prStDe.dataElement.displayName)"
                                      ng-show="errorMessages[eventRow.event][prStDe.dataElement.id]">
                                        <i class="fa fa-exclamation-triangle error-text"
                                           tooltip="{{errorMessages[eventRow.event][prStDe.dataElement.id]}}"
                                           tooltip-placement="bottom"></i>
                                </span>
                                <span ng-click="showCompleteErrorMessageInModal(warningMessages[eventRow.event][prStDe.dataElement.id], prStDe.dataElement.formName ? prStDe.dataElement.formName : prStDe.dataElement.displayName, true)"
                                      ng-show="warningMessages[eventRow.event][prStDe.dataElement.id]">
                                        <i class="fa fa-exclamation-triangle warning-text"
                                           tooltip="{{warningMessages[eventRow.event][prStDe.dataElement.id]}}"
                                           tooltip-placement="bottom"></i>
                                </span>
                        </div>
                    </div>
                </td>
                <td class="min-possible-width prevent-text-selection-on-double-click" ng-class="{'current-event-td': currentEvent === eventRow}">
                    <div class="statuscol" ng-controller="EventOptionsInTableController">
                        <div class="hideInPrint pull-right" ng-show="eventRow === currentEvent && tableEditMode !== tableEditModes.form && tableRowStatusButtonsEnabled(eventRow)">
                            <div class="btn-group event-table-options-dropdown dropdown"
                                 ng-dblclick="$event.stopPropagation();">
                              <button type="button" class="btn btn-default" ng-click="defaultOption.onClick()"  data-toggle='tooltip' ng-attr-title='{{defaultOption.tooltip | translate}}' ng-bind-html="defaultOption.icon" ng-disabled="defaultOption.disabled">
                              </button>
                              <button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown">
                                <span class="caret"></span>
                                <span class="sr-only">Toggle Dropdown</span>
                              </button>
                              <ul class="dropdown-menu">
                                  <li ng-show="option.show && !option.disabled" ng-repeat="option in eventTableOptionsArr" ng-click="option.onClick()">
                                      <a href="">
                                          <span ng-bind-html="option.icon"></span>
                                          &nbsp;{{option.text | translate}}
                                      </a>
                                  </li>
                              </ul>
                            </div>
                        </div>
                        <div class="pull-right" ng-show="eventRow !== currentEvent || tableEditMode === tableEditModes.form || !tableRowStatusButtonsEnabled(eventRow)" ng-dblclick="$event.stopPropagation();">
                            <span ng-show="eventRow !== currentEvent" class="badge event-table-options-badge" ng-class="getEventStyle(eventRow)">
                                <span ng-if="eventRow.status === EVENTSTATUSCOMPLETELABEL" class="glyphicon glyphicon-ok event-table-options-glypicon"></span>
                                <span ng-if="eventRow.status !== EVENTSTATUSCOMPLETELABEL" class="glyphicon glyphicon-remove event-table-options-glypicon"></span>
                            </span> 
                            <span class="hideInPrint" ng-show="eventRow === currentEvent" style="padding-right: 2px">
                                <span ng-if="eventRow.status === EVENTSTATUSCOMPLETELABEL" class="glyphicon glyphicon-ok event-table-options-glypicon"></span>
                                <span ng-if="eventRow.status !== EVENTSTATUSCOMPLETELABEL" class="glyphicon glyphicon-remove event-table-options-glypicon"></span>
                            </span>
                        </div>
                    </div>
                </td>
            </tr>
            </tbody>
        </table>
        <div class="hideInPrint">
            <div class="col-md-12" style="text-align: right;padding-right: 4px;">
                <button type="button"
                        class="btn btn-default"
                        ng-disabled="selectedOrgUnit.closedStatus"
                        ng-click="showCreateEvent(currentStage, eventCreationActions.add)">
                    {{'add'| translate}}
                </button>
                <button type="button"
                        class="btn btn-default"
                        ng-click="print('print-table-div')">
                    {{'print'| translate}}
                </button>
            </div>
        </div>
    </div>
</form>
</div>
